package com.xuetang9.t9.hotel.beans;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.List;

/**
 * 客人信息
 * @author PANG
 */
public class Guest implements Serializable {
    /**
     * 客人编号
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long guestId;

    /**
     * 客人姓名
     */
    private String guestName;

    /**
     * 证件类型
     */
    private String cardType;

    /**
     * 证件号码
     */
    private String cardNum;

    /**
     * 联系方式
     */
    private String guestPhone;

    /**
     * 客人住址
     */
    private String cardAddr;

    /**
     * 1-男 0-女
     */
    private Integer guestSex;

    /**
     * 客人状态0-离店 1-入住
     */
    private Integer guestState;


    /**
     * 入住记录表
     */
    private List<Arrive> arrives;

    public List<Arrive> getArrives() {
        return arrives;
    }

    public void setArrives(List<Arrive> arrives) {
        this.arrives = arrives;
    }

    public Long getGuestId() {
        return guestId;
    }

    public void setGuestId(Long guestId) {
        this.guestId = guestId;
    }

    public String getGuestName() {
        return guestName;
    }

    public void setGuestName(String guestName) {
        this.guestName = guestName;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public String getGuestPhone() {
        return guestPhone;
    }

    public void setGuestPhone(String guestPhone) {
        this.guestPhone = guestPhone;
    }

    public String getCardAddr() {
        return cardAddr;
    }

    public void setCardAddr(String cardAddr) {
        this.cardAddr = cardAddr;
    }

    public Integer getGuestSex() {
        return guestSex;
    }

    public void setGuestSex(Integer guestSex) {
        this.guestSex = guestSex;
    }

    public Integer getGuestState() {
        return guestState;
    }

    public void setGuestState(Integer guestState) {
        this.guestState = guestState;
    }

    @Override
    public String toString() {
        return "Guest{" +
                "guestId=" + guestId +
                ", guestName='" + guestName + '\'' +
                ", cardType='" + cardType + '\'' +
                ", cardNum='" + cardNum + '\'' +
                ", guestPhone='" + guestPhone + '\'' +
                ", cardAddr='" + cardAddr + '\'' +
                ", guestSex=" + guestSex +
                ", guestState=" + guestState +
                '}';
    }
}
